def outer(pre):
    def dec(func):
        def dec_in():
            print("good %s ,"%pre,end="")
            func()
        return dec_in
    return dec

@outer(pre="morning")
def greetting():
    print("glad to see you")

@outer(pre="evening")
def greetting2():
    print("glad to see you")

greetting()
greetting2()